﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ModuleEdit.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Basics.ModuleOpt.ModuleEdit" ValidateRequest="False" %>

<%@ Register src="~/SystemManage/Control/SinglePictureControl.ascx" tagname="SinglePictureControl" tagprefix="spc" %>

<form id="pageForm" method="post" runat="Server" class="pageForm required-validate"
    onsubmit="return validateCallback(this, navTabAjaxDone);" action="/SystemManage/Basics/ModuleOpt/ModuleEdit.aspx">
    
<div class="pageContent">
    <div class="pageFormContent" layoutH="56">
        <dl class="nowrap">
            <dt>模版代码：</dt>
            <dd><%= _moduleDb.Id %></dd>
        </dl>
        <dl class="nowrap">
            <dt>模版名称：</dt>
            <dd><%= _moduleDb.ModuleName%></dd>
        </dl>
<% if (_moduleDb.ModuleType == "PIC")
{
       %>
        <dl class="nowrap">
            <dt>图片：</dt>
            <dd><spc:SinglePictureControl ID="fc_img" ImageWidth="500" runat="server" FileCountLimit="1" FileFilters="*.jpg;*.jpeg;*.bmp;*.png;*.gif" FileDesc="图片"/></dd>
        </dl>
       <%
}
   if (_moduleDb.ModuleType == "ASPXSCRIPT")
{
       %>
        <dl class="nowrap">
            <dt>&nbsp;</dt>
            <dd>            
                <a class="button" href="/SystemManage/Basics/ModuleOpt/ModuleEdit.aspx?opt=renew&uid=<%= _moduleDb.Id %>" target="ajaxTodo" onclick="return false;"
                title="是否要重新生成内容？"><span>重新生成</span></a>
            </dd>
        </dl>

       <%
}
   if (_moduleDb.ModuleType == "DOC" || _moduleDb.ModuleType == "ASPXSCRIPT")
{
       %>
        <dl class="nowrap">
            <dt>内容：</dt>
            <dd>
            <textarea class="editor" name="txtSummary" rows="15" cols="75" style="width: 100%" id="tb_content" runat="Server"
                    uplinkurl="/SystemManage/Common/ContentUpload.aspx?dir=doc&ext=zip,rar,txt" uplinkext="zip,rar,txt"
                    upimgurl="/SystemManage/Common/ContentUpload.aspx?dir=doc&ext=jpg,jpeg,gif,png" upimgext="jpg,jpeg,gif,png"
                    upflashurl="/SystemManage/Common/ContentUpload.aspx?dir=doc&ext=swf" upflashext="swf"
                    upmediaurl="/SystemManage/Common/ContentUpload.aspx?dir=doc&ext=avi" upmediaext="avi">
            </textarea></dd>
        </dl>
       <%
}
 %>
	</div>
        
	<div class="formBar">
		<ul>
			<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
			<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
		</ul>
	</div>  
</div>
</form>